package com.dzt.androidframework.network.mobapi.lottery;

import java.util.List;

/**
 * Created by M02323 on 2017/12/7.
 */

public class Lottery {

	/**
	 * msg : success
	 * result : {"awardDateTime":"2017-12-05 21:15","lotteryDetails":[{"awardNumber":13,"awardPrice":6687672,"awards":"一等奖"},{"awardNumber":164,"awardPrice":167223,"awards":"二等奖"},{"awardNumber":1606,"awardPrice":3000,"awards":"三等奖"},{"awardNumber":78943,"awardPrice":200,"awards":"四等奖"},{"awardNumber":1488152,"awardPrice":10,"awards":"五等奖"},{"awardNumber":8591476,"awardPrice":5,"awards":"六等奖"}],"lotteryNumber":["04","06","09","14","20","29","14"],"name":"双色球","period":"2017143","pool":7.0768828E8,"sales":3.83967718E8}
	 * retCode : 200
	 */

	private String msg;
	private ResultBean result;
	private String retCode;

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public ResultBean getResult() {
		return result;
	}

	public void setResult(ResultBean result) {
		this.result = result;
	}

	public String getRetCode() {
		return retCode;
	}

	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}

	public static class ResultBean {
		/**
		 * awardDateTime : 2017-12-05 21:15
		 * lotteryDetails : [{"awardNumber":13,"awardPrice":6687672,"awards":"一等奖"},{"awardNumber":164,"awardPrice":167223,"awards":"二等奖"},{"awardNumber":1606,"awardPrice":3000,"awards":"三等奖"},{"awardNumber":78943,"awardPrice":200,"awards":"四等奖"},{"awardNumber":1488152,"awardPrice":10,"awards":"五等奖"},{"awardNumber":8591476,"awardPrice":5,"awards":"六等奖"}]
		 * lotteryNumber : ["04","06","09","14","20","29","14"]
		 * name : 双色球
		 * period : 2017143
		 * pool : 7.0768828E8
		 * sales : 3.83967718E8
		 */

		private String awardDateTime;
		private String name;
		private String period;
		private double pool;
		private double sales;
		private List<LotteryDetailsBean> lotteryDetails;
		private List<String> lotteryNumber;

		public String getAwardDateTime() {
			return awardDateTime;
		}

		public void setAwardDateTime(String awardDateTime) {
			this.awardDateTime = awardDateTime;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getPeriod() {
			return period;
		}

		public void setPeriod(String period) {
			this.period = period;
		}

		public double getPool() {
			return pool;
		}

		public void setPool(double pool) {
			this.pool = pool;
		}

		public double getSales() {
			return sales;
		}

		public void setSales(double sales) {
			this.sales = sales;
		}

		public List<LotteryDetailsBean> getLotteryDetails() {
			return lotteryDetails;
		}

		public void setLotteryDetails(List<LotteryDetailsBean> lotteryDetails) {
			this.lotteryDetails = lotteryDetails;
		}

		public List<String> getLotteryNumber() {
			return lotteryNumber;
		}

		public void setLotteryNumber(List<String> lotteryNumber) {
			this.lotteryNumber = lotteryNumber;
		}

		public static class LotteryDetailsBean {
			/**
			 * awardNumber : 13
			 * awardPrice : 6687672
			 * awards : 一等奖
			 */

			private int awardNumber;
			private int awardPrice;
			private String awards;

			public int getAwardNumber() {
				return awardNumber;
			}

			public void setAwardNumber(int awardNumber) {
				this.awardNumber = awardNumber;
			}

			public int getAwardPrice() {
				return awardPrice;
			}

			public void setAwardPrice(int awardPrice) {
				this.awardPrice = awardPrice;
			}

			public String getAwards() {
				return awards;
			}

			public void setAwards(String awards) {
				this.awards = awards;
			}

			@Override
			public String toString() {
				return "LotteryDetailsBean{" +
						"awardNumber=" + awardNumber +
						", awardPrice=" + awardPrice +
						", awards='" + awards + '\'' +
						'}';
			}
		}

		@Override
		public String toString() {
			return "ResultBean{" +
					"awardDateTime='" + awardDateTime + '\'' +
					", name='" + name + '\'' +
					", period='" + period + '\'' +
					", pool=" + pool +
					", sales=" + sales +
					", lotteryDetails=" + lotteryDetails +
					", lotteryNumber=" + lotteryNumber +
					'}';
		}
	}

	@Override
	public String toString() {
		return "Lottery{" +
				"msg='" + msg + '\'' +
				", result=" + result +
				", retCode='" + retCode + '\'' +
				'}';
	}
}
